package com.wicket.okrbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.integration.dto.*;
import com.wicket.okrbff.biz.service.ChangeColumnService;
import com.wicket.okrbff.biz.service.dto.common.BffDeptChangeRecordDto;
import com.wicket.okrbff.biz.service.dto.common.BffEvaChangeRecordDto;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.util.RedisUtil;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrframework.integration.FwBaseChangeColumnClient;
import com.wicket.okrframework.integration.dto.*;
import com.wicket.okrframework.integration.dto.ChangeColumnDto;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.stream.Collectors;

import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrframework.integration.FwBaseOrgClient;
import com.wicket.okrapp.integration.FwAppChangeColumnClient;
import java.util.ArrayList;
import java.util.List;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class ChangeColumnServiceImpl implements ChangeColumnService {

    @Resource
    FwBaseChangeColumnClient changeColumnClient;
    @Resource
    FwBaseChangeColumnClient fwBaseChangeColumnClient;
    @Resource
    private RedisUtil redisUtil;
@Resource
  FwBaseInductionRecordClient fwBaseInductionRecordClient;
@Resource
  FwBaseOrgClient fwBaseOrgClient;
@Resource
  FwAppChangeColumnClient fwAppChangeColumnClient;

    /**
   * （1111待确认后删除）B1-修订批次外内容（公共）[1672]
   * gen by moon at 8/10/2022, 3:36:51 AM
   */
    @Trace(operationName = "（1111待确认后删除）B1-修订批次外内容（公共）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffReviseNotBatchContentComRespDto reviseNotBatchContentCom(BffReviseNotBatchContentComReqDto reqDto){
      
       
       //步骤0: （1111待确认后删除）D1-1修订批次外内容 - reviseNotBatchContent
     ReviseNotBatchContentRespDto reviseNotBatchContentRespDto = null;
    ReviseNotBatchContentReqDto reviseNotBatchContentReqDto=new ReviseNotBatchContentReqDto();
  
  
    /*（1111待确认后删除）D1-1修订批次外内容[1671]   */
    
      reviseNotBatchContentRespDto = fwBaseChangeColumnClient.reviseNotBatchContent(reviseNotBatchContentReqDto).getData();
      
      
    
BffReviseNotBatchContentComRespDto retData = new BffReviseNotBatchContentComRespDto();
  
  

  
  
return retData;
  }

    /**
   * B1-3撤销修订部门资料(管理)[915]
   * gen by moon at 7/23/2022, 9:48:13 PM
   */
    @Trace(operationName = "B1-1撤销修订底层变更字段（公共）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUndoReviseBaseChangeColRespDto undoReviseBaseChangeCol(BffUndoReviseBaseChangeColReqDto reqDto){


       //步骤0: D1-1撤销修订底层框架服务变更字段 - undoReviseBaseChangeCol
     UndoReviseBaseChangeColRespDto undoReviseBaseChangeColRespDto = null;
    UndoReviseBaseChangeColReqDto undoReviseBaseChangeColReqDto=new UndoReviseBaseChangeColReqDto();
  if(reqDto!=null){
      undoReviseBaseChangeColReqDto.setTableTypeCode("oms_org_dept");
      undoReviseBaseChangeColReqDto.setEntityId(reqDto.getUniqueId());
    }

    /*D1-1撤销修订底层框架服务变更字段[918]   */
      undoReviseBaseChangeColRespDto = fwBaseChangeColumnClient.undoReviseBaseChangeCol(undoReviseBaseChangeColReqDto).getData();



BffUndoReviseBaseChangeColRespDto retData = new BffUndoReviseBaseChangeColRespDto();





return retData;
  }

    /**
   * B1-修订批次下内容（公共）[275]
   * gen by moon at 7/23/2022, 9:47:44 PM
   */
    @Trace(operationName = "B1-修订批次下内容（公共）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffReviseBatchContentComRespDto reviseBatchContentCom(BffReviseBatchContentComReqDto reqDto){


       //步骤0: D1-1修订底层框架服务变更字段 - reviseBaseChangeCol
     ReviseBaseChangeColRespDto reviseBaseChangeColRespDto = null;
    ReviseBaseChangeColReqDto reviseBaseChangeColReqDto=new ReviseBaseChangeColReqDto();
  if(reqDto!=null){
      reviseBaseChangeColReqDto.setTableTypeCode(reqDto.getTableTypeCode());//sourceId:79418_1
reviseBaseChangeColReqDto.setEntityId(reqDto.getEntityId());//sourceId:79419_1
reviseBaseChangeColReqDto.setBatchId(reqDto.getBatchId());//sourceId:79420_1
reviseBaseChangeColReqDto.setChangeColumnList(reqDto.getChangeColumnList().stream().map(item -> BeanUtil.toBean(item, ChangeColumnDto.class)).collect(Collectors.toList()));//sourceId:17205_1
    }

    /*D1-1修订底层框架服务变更字段[272]   */
      reviseBaseChangeColRespDto = fwBaseChangeColumnClient.reviseBaseChangeCol(reviseBaseChangeColReqDto).getData();



BffReviseBatchContentComRespDto retData = new BffReviseBatchContentComRespDto();





return retData;
  }

    /**
     * B1-查底层变更字段列表[1811]
     */
    @Trace(operationName = "B1-查底层变更字段列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryBaseChangeColListRespDto queryBaseChangeColList(BffQueryBaseChangeColListReqDto reqDto) {


        //步骤0: D1-1查询底层框架服务变更字段列表 - queryBaseChangeColList
        QueryBaseChangeColListRespDto queryBaseChangeColListRespDto = null;
        QueryBaseChangeColListReqDto queryBaseChangeColListReqDto = new QueryBaseChangeColListReqDto();
        if (reqDto != null) {
            queryBaseChangeColListReqDto.setTableTypeCode(reqDto.getTableTypeCode());//sourceId:55260_1
            queryBaseChangeColListReqDto.setEntityId(reqDto.getEntityId());//sourceId:55261_1
        }

        /*D1-1查询底层框架服务变更字段列表[934]   */
        queryBaseChangeColListRespDto = fwBaseChangeColumnClient.queryBaseChangeColList(queryBaseChangeColListReqDto).getData();


        BffQueryBaseChangeColListRespDto retData = new BffQueryBaseChangeColListRespDto();
        retData.setBaseChangeColumnList(queryBaseChangeColListRespDto.getBaseChangeColumnList().stream().map(item -> BeanUtil.toBean(item, BffBaseChangeColumnDto.class)).collect(Collectors.toList()));//sourceId:55268_1


        return retData;
    }
/**
   * B1-1查询组织变更记录列表(管理)[3497]
   * gen by moon at 8/10/2022, 3:38:48 AM
   */
    @Trace(operationName = "B1-1查询组织变更记录列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryOrgChangeRecordListRespDto queryOrgChangeRecordList(BffQueryOrgChangeRecordListReqDto reqDto){
      
       
       QueryBaseChangeRecordListRespDto queryBaseChangeRecordListRespDto_1 = null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 = null;
//步骤0: D1-1查询底层变更记录列表 - queryBaseChangeRecordList
     QueryBaseChangeRecordListRespDto queryBaseChangeRecordListRespDto = null;
    QueryBaseChangeRecordListReqDto queryBaseChangeRecordListReqDto=new QueryBaseChangeRecordListReqDto();
  queryBaseChangeRecordListReqDto.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:148912_1
queryBaseChangeRecordListReqDto.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:180491_1
if(reqDto!=null){
      queryBaseChangeRecordListReqDto.setBatchId(reqDto.getBatchId());//sourceId:148729_1
queryBaseChangeRecordListReqDto.setSubjectChangeType(reqDto.getSubjectChangeType());//sourceId:148730_1
queryBaseChangeRecordListReqDto.setSubjectUpdateStatus(reqDto.getSubjectUpdateStatus());//sourceId:148913_1
queryBaseChangeRecordListReqDto.setObjectId(reqDto.getObjectId());//sourceId:180492_1
    }
  
    /*D1-1查询底层变更记录列表[3494]   */
    Assert.isNull(queryBaseChangeRecordListReqDto.getBatchId(),"B1-1查询组织变更记录列表(管理)-D1-1查询底层变更记录列表-批次ID不能为空",false);
Assert.isNull(queryBaseChangeRecordListReqDto.getSubjectTypeCode(),"B1-1查询组织变更记录列表(管理)-D1-1查询底层变更记录列表-主体类型编码不能为空",false);
Assert.isNull(queryBaseChangeRecordListReqDto.getObjectTypeCode(),"B1-1查询组织变更记录列表(管理)-D1-1查询底层变更记录列表-归属对象类型编码不能为空",false);
Assert.isNull(queryBaseChangeRecordListReqDto.getObjectId(),"B1-1查询组织变更记录列表(管理)-D1-1查询底层变更记录列表-归属对象内容ID不能为空",false);
      queryBaseChangeRecordListRespDto = fwBaseChangeColumnClient.queryBaseChangeRecordList(queryBaseChangeRecordListReqDto).getData();
      
      queryBaseChangeRecordListRespDto_1 = queryBaseChangeRecordListRespDto;
    
//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryBaseChangeRecordListRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(queryBaseChangeRecordListRespDto!=null){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryBaseChangeRecordListRespDto.getBaseChangeColumnList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));//sourceId:148733_1
    }
  
    /*D1-3批量查询就职记录列表（公共）[602]   */
    
      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData();
      
      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }
    
BffQueryOrgChangeRecordListRespDto retData = new BffQueryOrgChangeRecordListRespDto();
  //数据集融合
        if(queryBaseChangeRecordListRespDto_1!= null && !CollectionUtil.isEmpty(queryBaseChangeRecordListRespDto_1.getBaseChangeColumnList())){
          for (BaseChangeColumnDto baseChangeColumnDto : queryBaseChangeRecordListRespDto_1.getBaseChangeColumnList()) {
              BffBaseChangeColumnDto retElm = new BffBaseChangeColumnDto();
             if(queryBaseChangeRecordListRespDto_1!=null){
      retElm.setChangeColumnId(baseChangeColumnDto.getChangeColumnId());//sourceId:68983_2
retElm.setSubjectChangeType(baseChangeColumnDto.getSubjectChangeType());//sourceId:68984_2
retElm.setSubjectUpdateStatus(baseChangeColumnDto.getSubjectUpdateStatus());//sourceId:69198_2
retElm.setOriColumnContent(baseChangeColumnDto.getOriColumnContent());//sourceId:68987_2
retElm.setObjectPropertyName(baseChangeColumnDto.getObjectPropertyName());//sourceId:74342_2
retElm.setColumnContent(baseChangeColumnDto.getColumnContent());//sourceId:68989_2
retElm.setOperationInductionId(baseChangeColumnDto.getOperationInductionId());//sourceId:68991_2
retElm.setOperateTime(baseChangeColumnDto.getOperateTime());//sourceId:68993_2
    }
              retData.getBaseChangeColumnList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(baseChangeColumnDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setUserId(perOrgInductionRecordDto.getUserId());//sourceId:68986_2
retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//sourceId:68988_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//sourceId:68990_2
retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//sourceId:68992_2
    }
                }
            }
          }
        
          }
        }//sourceId:148738_1
  

  
  
return retData;
  }
/**
   * B1-3修订组织批次下内容(管理)[275]
   * gen by moon at 9/5/2022, 2:09:10 AM
   */
    @Trace(operationName = "B1-3修订组织批次下内容(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffReviseOrgAtchContentRespDto reviseOrgAtchContent(BffReviseOrgAtchContentReqDto reqDto){
      
       
       //步骤0: D1修订组织批次下内容 - reviseOrgAtchContent
     ReviseOrgAtchContentRespDto reviseOrgAtchContentRespDto = null;
    ReviseOrgAtchContentReqDto reviseOrgAtchContentReqDto=new ReviseOrgAtchContentReqDto();
  if(reqDto!=null){
      reviseOrgAtchContentReqDto.setBatchId(reqDto.getBatchId());//sourceId:301622_1
reviseOrgAtchContentReqDto.setEntityId(reqDto.getEntityId());//sourceId:301623_1
reviseOrgAtchContentReqDto.setObjectId(reqDto.getObjectId());//sourceId:301624_1
reviseOrgAtchContentReqDto.setChangeColumnList(reqDto.getChangeColumnList().stream().map(item -> BeanUtil.toBean(item, ChangeColumnDto.class)).collect(Collectors.toList()));//sourceId:301625_1
    }
  
    /*D1修订组织批次下内容[4355]   */
    Assert.isNull(reviseOrgAtchContentReqDto.getBatchId(),"B1-3修订组织批次下内容(管理)-D1修订组织批次下内容-批次ID不能为空",false);
Assert.isNull(reviseOrgAtchContentReqDto.getEntityId(),"B1-3修订组织批次下内容(管理)-D1修订组织批次下内容-主体主键ID不能为空",false);
Assert.isNull(reviseOrgAtchContentReqDto.getObjectId(),"B1-3修订组织批次下内容(管理)-D1修订组织批次下内容-所属组织ID不能为空",false);
      reviseOrgAtchContentRespDto = fwBaseChangeColumnClient.reviseOrgAtchContent(reviseOrgAtchContentReqDto).getData();
      
      
      
    
BffReviseOrgAtchContentRespDto retData = new BffReviseOrgAtchContentRespDto();
  
  

  
  
return retData;
  }
/**
   * B1-3撤销修订部门资料(管理)[915]
   * gen by moon at 8/10/2022, 3:31:14 AM
   */
    @Trace(operationName = "B1-3撤销修订部门资料(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUndoReviseDeptInfoRespDto undoReviseDeptInfo(BffUndoReviseDeptInfoReqDto reqDto){
      
       
       //步骤0: D1-1撤销修订底层框架服务变更字段 - undoReviseBaseChangeCol
     UndoReviseBaseChangeColRespDto undoReviseBaseChangeColRespDto = null;
    UndoReviseBaseChangeColReqDto undoReviseBaseChangeColReqDto=new UndoReviseBaseChangeColReqDto();
  undoReviseBaseChangeColReqDto.setTableTypeCode("OMS_ORG_DEPT");//sourceId:152014_1
if(reqDto!=null){
      undoReviseBaseChangeColReqDto.setEntityId(reqDto.getEntityId());//sourceId:152015_1
    }
  
    /*D1-1撤销修订底层框架服务变更字段[918]   */
    Assert.isNull(undoReviseBaseChangeColReqDto.getTableTypeCode(),"B1-3撤销修订部门资料(管理)-D1-1撤销修订底层框架服务变更字段-内容表类型编码不能为空",false);
Assert.isNull(undoReviseBaseChangeColReqDto.getEntityId(),"B1-3撤销修订部门资料(管理)-D1-1撤销修订底层框架服务变更字段-撤销删除内容主键ID不能为空",false);
      undoReviseBaseChangeColRespDto = fwBaseChangeColumnClient.undoReviseBaseChangeCol(undoReviseBaseChangeColReqDto).getData();
      
      
    
BffUndoReviseDeptInfoRespDto retData = new BffUndoReviseDeptInfoRespDto();
  
  

  
  
return retData;
  }
/**
   * B1-3修订部门资料(管理)[3529]
   * gen by moon at 9/4/2022, 3:32:21 AM
   */
    @Trace(operationName = "B1-3修订部门资料(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffReviseDeptInfoRespDto reviseDeptInfo(BffReviseDeptInfoReqDto reqDto){
      
       
       //步骤0: D1-3查询部门详情(公共)(边界) - queryDeptDetailComBorder
     QueryDeptDetailComBorderRespDto queryDeptDetailComBorderRespDto = null;
    QueryDeptDetailComBorderReqDto queryDeptDetailComBorderReqDto=new QueryDeptDetailComBorderReqDto();
  if(reqDto!=null){
      queryDeptDetailComBorderReqDto.setDeptId(reqDto.getEntityId());//sourceId:286552_1
    }
  
    /*D1-3查询部门详情(公共)(边界)[2691]   */
    Assert.isNull(queryDeptDetailComBorderReqDto.getDeptId(),"B1-3修订部门资料(管理)-D1-3查询部门详情(公共)(边界)-部门ID不能为空",false);
      queryDeptDetailComBorderRespDto = fwBaseOrgClient.queryDeptDetailComBorder(queryDeptDetailComBorderReqDto).getData();
      Assert.isTrue(queryDeptDetailComBorderRespDto== null||  queryDeptDetailComBorderRespDto.getDeptId() ==null,"返回值不能为空",false);
      
      
    
//步骤1: D1-1判断生命周期底层变更字段(公共) - judgeSubjectLifeCycleBaseChangeColCom
     JudgeSubjectLifeCycleBaseChangeColComRespDto judgeSubjectLifeCycleBaseChangeColComRespDto = null;
    if(queryDeptDetailComBorderRespDto !=null){
          JudgeSubjectLifeCycleBaseChangeColComReqDto judgeSubjectLifeCycleBaseChangeColComReqDto=new JudgeSubjectLifeCycleBaseChangeColComReqDto();
  judgeSubjectLifeCycleBaseChangeColComReqDto.setSubjectTypeCode("DEPT_LOG_NAV");//sourceId:297062_1
judgeSubjectLifeCycleBaseChangeColComReqDto.setSubjectChangeType("REVISE_DEPT");//CUSTOM_CONVENTION//sourceId:297063_1
judgeSubjectLifeCycleBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_DEPT");//sourceId:297064_1
judgeSubjectLifeCycleBaseChangeColComReqDto.setEntityName("deptId");//CUSTOM_CONVENTION//sourceId:297065_1
judgeSubjectLifeCycleBaseChangeColComReqDto.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:297066_1
if(reqDto!=null){
      judgeSubjectLifeCycleBaseChangeColComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//sourceId:297058_1
judgeSubjectLifeCycleBaseChangeColComReqDto.setEntityId(reqDto.getEntityId());//sourceId:297059_1
judgeSubjectLifeCycleBaseChangeColComReqDto.setObjectId(reqDto.getObjectId());//sourceId:297060_1
judgeSubjectLifeCycleBaseChangeColComReqDto.setChangeColumnList(reqDto.getChangeColumnList().stream().map(item -> BeanUtil.toBean(item, ChangeColumnDto.class)).collect(Collectors.toList()));//sourceId:297067_1
    }
if(queryDeptDetailComBorderRespDto!=null){
      judgeSubjectLifeCycleBaseChangeColComReqDto.setReviseSubjectContent(queryDeptDetailComBorderRespDto.getDeptShortName());//sourceId:297061_1
    }
  
    /*D1-1判断生命周期底层变更字段(公共)[4344]   */
    Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getSubjectLifeCycle(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-主体生命周期不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getSubjectTypeCode(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-主体类型编码不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getSubjectChangeType(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-主体变更日志类型不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getTableTypeCode(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-内容表类型编码不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getEntityId(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-内容表主键ID不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getEntityName(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-内容表主键行为日志英文名称不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getObjectTypeCode(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-归属对象类型编码不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getObjectId(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-归属对象内容ID不能为空",false);
Assert.isNull(judgeSubjectLifeCycleBaseChangeColComReqDto.getReviseSubjectContent(),"B1-3修订部门资料(管理)-D1-1判断生命周期底层变更字段(公共)-修订主体内容不能为空",false);
      judgeSubjectLifeCycleBaseChangeColComRespDto = fwBaseChangeColumnClient.judgeSubjectLifeCycleBaseChangeColCom(judgeSubjectLifeCycleBaseChangeColComReqDto).getData();
      
      
      
           }
    
BffReviseDeptInfoRespDto retData = new BffReviseDeptInfoRespDto();
  
  

  
  
return retData;
  }
/**
   * B1-3撤销修订组织批次下内容(管理)[3539]
   * gen by moon at 8/10/2022, 3:38:50 AM
   */
    @Trace(operationName = "B1-3撤销修订组织批次下内容(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUndoReviseOrgAtchContentRespDto undoReviseOrgAtchContent(BffUndoReviseOrgAtchContentReqDto reqDto){
      
       
       //步骤0: D1-1撤销修订底层框架服务变更字段 - undoReviseBaseChangeCol
     UndoReviseBaseChangeColRespDto undoReviseBaseChangeColRespDto = null;
    UndoReviseBaseChangeColReqDto undoReviseBaseChangeColReqDto=new UndoReviseBaseChangeColReqDto();
  undoReviseBaseChangeColReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:155164_1
if(reqDto!=null){
      undoReviseBaseChangeColReqDto.setEntityId(reqDto.getEntityId());//sourceId:155163_1
    }
  
    /*D1-1撤销修订底层框架服务变更字段[918]   */
    Assert.isNull(undoReviseBaseChangeColReqDto.getTableTypeCode(),"B1-3撤销修订组织批次下内容(管理)-D1-1撤销修订底层框架服务变更字段-内容表类型编码不能为空",false);
Assert.isNull(undoReviseBaseChangeColReqDto.getEntityId(),"B1-3撤销修订组织批次下内容(管理)-D1-1撤销修订底层框架服务变更字段-内容表主键ID不能为空",false);
      undoReviseBaseChangeColRespDto = fwBaseChangeColumnClient.undoReviseBaseChangeCol(undoReviseBaseChangeColReqDto).getData();
      
      
    
BffUndoReviseOrgAtchContentRespDto retData = new BffUndoReviseOrgAtchContentRespDto();
  
  

  
  
return retData;
  }
/**
   * B1-1查询部门变更记录列表(管理)[3558]
   * gen by moon at 8/18/2022, 10:22:01 PM
   */
    @Trace(operationName = "B1-1查询部门变更记录列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryDeptChangeRecordListRespDto queryDeptChangeRecordList(BffQueryDeptChangeRecordListReqDto reqDto){
      
       
       QueryBaseChangeRecordListRespDto queryBaseChangeRecordListRespDto_1 = null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 = null;
//步骤0: D1-1查询底层变更记录列表 - queryBaseChangeRecordList
     QueryBaseChangeRecordListRespDto queryBaseChangeRecordListRespDto = null;
    QueryBaseChangeRecordListReqDto queryBaseChangeRecordListReqDto=new QueryBaseChangeRecordListReqDto();
  queryBaseChangeRecordListReqDto.setSubjectTypeCode("DEPT_LOG_NAV");//sourceId:157781_1
queryBaseChangeRecordListReqDto.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:157783_1
if(reqDto!=null){
      queryBaseChangeRecordListReqDto.setSubjectChangeType(reqDto.getSubjectChangeType());//sourceId:157779_1
queryBaseChangeRecordListReqDto.setSubjectUpdateStatus(reqDto.getSubjectUpdateStatus());//sourceId:157782_1
queryBaseChangeRecordListReqDto.setObjectId(reqDto.getObjectId());//sourceId:157784_1
    }
  
    /*D1-1查询底层变更记录列表[3494]   */
    Assert.isNull(queryBaseChangeRecordListReqDto.getSubjectTypeCode(),"B1-1查询部门变更记录列表(管理)-D1-1查询底层变更记录列表-主体类型编码不能为空",false);
Assert.isNull(queryBaseChangeRecordListReqDto.getObjectTypeCode(),"B1-1查询部门变更记录列表(管理)-D1-1查询底层变更记录列表-归属对象类型编码不能为空",false);
Assert.isNull(queryBaseChangeRecordListReqDto.getObjectId(),"B1-1查询部门变更记录列表(管理)-D1-1查询底层变更记录列表-归属对象内容ID不能为空",false);
      queryBaseChangeRecordListRespDto = fwBaseChangeColumnClient.queryBaseChangeRecordList(queryBaseChangeRecordListReqDto).getData();
      
      queryBaseChangeRecordListRespDto_1 = queryBaseChangeRecordListRespDto;
    
//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryBaseChangeRecordListRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(queryBaseChangeRecordListRespDto!=null){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryBaseChangeRecordListRespDto.getBaseChangeColumnList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));//sourceId:157792_1
    }
  
    /*D1-3批量查询就职记录列表（公共）[602]   */
    
      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData();
      
      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }
    
BffQueryDeptChangeRecordListRespDto retData = new BffQueryDeptChangeRecordListRespDto();
  //数据集融合
        if(queryBaseChangeRecordListRespDto_1!= null && !CollectionUtil.isEmpty(queryBaseChangeRecordListRespDto_1.getBaseChangeColumnList())){
          for (BaseChangeColumnDto baseChangeColumnDto : queryBaseChangeRecordListRespDto_1.getBaseChangeColumnList()) {
              BffDeptChangeRecordDto retElm = new BffDeptChangeRecordDto();
             if(queryBaseChangeRecordListRespDto_1!=null){
      retElm.setChangeColumnId(baseChangeColumnDto.getChangeColumnId());//sourceId:70351_2
retElm.setSubjectChangeType(baseChangeColumnDto.getSubjectChangeType());//sourceId:70352_2
retElm.setSubjectUpdateStatus(baseChangeColumnDto.getSubjectUpdateStatus());//sourceId:70353_2
retElm.setIsInproperties(baseChangeColumnDto.getIsInproperties());//sourceId:70370_2
retElm.setObjectPropertyName(baseChangeColumnDto.getObjectPropertyName());//sourceId:70371_2
retElm.setOriColumnContent(baseChangeColumnDto.getOriColumnContent());//sourceId:70354_2
retElm.setColumnContent(baseChangeColumnDto.getColumnContent());//sourceId:70355_2
retElm.setOperationInductionId(baseChangeColumnDto.getOperationInductionId());//sourceId:70356_2
retElm.setOperateTime(baseChangeColumnDto.getOperateTime());//sourceId:70357_2
    }
              retData.getDeptChangeRecordList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(baseChangeColumnDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setUserId(perOrgInductionRecordDto.getUserId());//sourceId:70358_2
retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//sourceId:70359_2
retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//sourceId:70360_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//sourceId:70361_2
    }
                }
            }
          }
        
          }
        }//sourceId:157794_1
  

  
  
return retData;
  }
/**
   * B1-判断重置修订元素(管理)[4353]
   * gen by moon at 9/2/2022, 5:09:32 PM
   */
    @Trace(operationName = "B1-判断重置修订元素(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffJudgeReviseElementRespDto judgeReviseElement(BffJudgeReviseElementReqDto reqDto){
      
       
       JudgeReviseElementRespDto judgeReviseElementRespDto_1 =null;
//步骤0: D1-判断重置修订元素 - judgeReviseElement
     JudgeReviseElementRespDto judgeReviseElementRespDto = null;
    JudgeReviseElementReqDto judgeReviseElementReqDto=new JudgeReviseElementReqDto();
  if(reqDto!=null){
      judgeReviseElementReqDto.setTableTypeCode(reqDto.getTableTypeCode());//sourceId:301461_1
judgeReviseElementReqDto.setEntityId(reqDto.getEntityId());//sourceId:301462_1
    }
  
    /*D1-判断重置修订元素[4343]   */
    Assert.isNull(judgeReviseElementReqDto.getTableTypeCode(),"B1-判断重置修订元素(管理)-D1-判断重置修订元素-内容表类型编码不能为空",false);
Assert.isNull(judgeReviseElementReqDto.getEntityId(),"B1-判断重置修订元素(管理)-D1-判断重置修订元素-内容表主键ID不能为空",false);
      judgeReviseElementRespDto = fwBaseChangeColumnClient.judgeReviseElement(judgeReviseElementReqDto).getData();
      
      
      judgeReviseElementRespDto_1 = judgeReviseElementRespDto;
    
BffJudgeReviseElementRespDto retData = new BffJudgeReviseElementRespDto();
  if(judgeReviseElementRespDto_1!=null){
      retData.setReviseElementList(judgeReviseElementRespDto_1.getReviseElementList());//sourceId:301466_1
    }
  

  
  
return retData;
  }
/**
   * B3-13查询评价模板变更记录列表(管理)[3788]
   * gen by moon at 6/10/2023, 4:41:15 AM
   */
    @Trace(operationName = "B3-13查询评价模板变更记录列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
    @Override
 public BffQueryEvaChangeRecordListRespDto queryEvaChangeRecordList(BffQueryEvaChangeRecordListReqDto reqDto){


       QueryBizAppChangeColListRespDto queryBizAppChangeColListRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
//步骤0: D3-13查询业务应用变更字段列表 - queryBizAppChangeColList
     QueryBizAppChangeColListRespDto queryBizAppChangeColListRespDto = null;
    QueryBizAppChangeColListReqDto queryBizAppChangeColListReqDto=new QueryBizAppChangeColListReqDto();
  queryBizAppChangeColListReqDto.setSubjectTypeCode("EVALUATION_TEMPLATE_LOG_NAV");//sourceId:180476_1
if(reqDto!=null){
      queryBizAppChangeColListReqDto.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:180475_1
queryBizAppChangeColListReqDto.setSubjectChangeType(reqDto.getSubjectChangeType());//SimpleFieldAssign//sourceId:180477_1
queryBizAppChangeColListReqDto.setSubjectUpdateStatus(reqDto.getSubjectUpdateStatus());//SimpleFieldAssign//sourceId:180478_1
queryBizAppChangeColListReqDto.setObjectTypeCode(reqDto.getObjectTypeCode());//SimpleFieldAssign//sourceId:180500_1
queryBizAppChangeColListReqDto.setObjectId(reqDto.getObjectId());//SimpleFieldAssign//sourceId:180501_1
    }

    /*D3-13查询业务应用变更字段列表[3786]   */
    Assert.isNull(queryBizAppChangeColListReqDto.getBatchCode(),"B3-13查询评价模板变更记录列表(管理)-D3-13查询业务应用变更字段列表-批次标识不能为空",false);
Assert.isNull(queryBizAppChangeColListReqDto.getSubjectTypeCode(),"B3-13查询评价模板变更记录列表(管理)-D3-13查询业务应用变更字段列表-主体类型编码不能为空",false);
Assert.isNull(queryBizAppChangeColListReqDto.getObjectTypeCode(),"B3-13查询评价模板变更记录列表(管理)-D3-13查询业务应用变更字段列表-归属对象类型编码不能为空",false);
Assert.isNull(queryBizAppChangeColListReqDto.getObjectId(),"B3-13查询评价模板变更记录列表(管理)-D3-13查询业务应用变更字段列表-归属对象内容ID不能为空",false);
      queryBizAppChangeColListRespDto = fwAppChangeColumnClient.queryBizAppChangeColList(queryBizAppChangeColListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;

  
      queryBizAppChangeColListRespDto_1 = queryBizAppChangeColListRespDto;

//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryBizAppChangeColListRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(queryBizAppChangeColListRespDto!= null&&  queryBizAppChangeColListRespDto.getBizAppChangeColList() !=null&& !CollectionUtil.isEmpty(queryBizAppChangeColListRespDto.getBizAppChangeColList())){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryBizAppChangeColListRespDto.getBizAppChangeColList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:180506_1
    }

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }

BffQueryEvaChangeRecordListRespDto retData = new BffQueryEvaChangeRecordListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryBizAppChangeColListRespDto_1!= null && !CollectionUtil.isEmpty(queryBizAppChangeColListRespDto_1.getBizAppChangeColList()) ){
          for (BizAppChangeColDto bizAppChangeColDto : queryBizAppChangeColListRespDto_1.getBizAppChangeColList()) {
              BffEvaChangeRecordDto retElm = new BffEvaChangeRecordDto();
             if(queryBizAppChangeColListRespDto_1!=null){
      retElm.setChangeColumnId(bizAppChangeColDto.getChangeColumnId());//SimpleFieldAssign//sourceId:76757_2
retElm.setSubjectChangeType(bizAppChangeColDto.getSubjectChangeType());//SimpleFieldAssign//sourceId:76758_2
retElm.setSubjectUpdateStatus(bizAppChangeColDto.getSubjectUpdateStatus());//SimpleFieldAssign//sourceId:76759_2
retElm.setIsInproperties(bizAppChangeColDto.getIsInproperties());//SimpleFieldAssign//sourceId:76760_2
retElm.setObjectPropertyName(bizAppChangeColDto.getObjectPropertyName());//SimpleFieldAssign//sourceId:76761_2
retElm.setOriColumnContent(bizAppChangeColDto.getOriColumnContent());//SimpleFieldAssign//sourceId:76762_2
retElm.setColumnContent(bizAppChangeColDto.getColumnContent());//SimpleFieldAssign//sourceId:76763_2
retElm.setOperationInductionId(bizAppChangeColDto.getOperationInductionId());//SimpleFieldAssign//sourceId:76764_2
retElm.setOperateTime(bizAppChangeColDto.getOperateTime());//SimpleFieldAssign//sourceId:76765_2
    }
              retData.getEvaChangeRecordList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(bizAppChangeColDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setUserId(perOrgInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:76778_2
retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:76779_2
retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:76780_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:76781_2
    }
                }
            }
          }

          }
        }//sourceId:180504_1




return retData;
  }
/**
   * B3-判断业务应用重置修订元素(管理)[4791]
   * gen by moon at 10/8/2022, 3:11:22 AM
   */
    @Trace(operationName = "B3-判断业务应用重置修订元素(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffJudgeAppReviseElementRespDto judgeAppReviseElement(BffJudgeAppReviseElementReqDto reqDto){
      
       
       JudgeAppReviseElementRespDto judgeAppReviseElementRespDto_1 =null;
//步骤0: D3-判断业务应用重置修订元素 - judgeAppReviseElement
     JudgeAppReviseElementRespDto judgeAppReviseElementRespDto = null;
    JudgeAppReviseElementReqDto judgeAppReviseElementReqDto=new JudgeAppReviseElementReqDto();
  if(reqDto!=null){
      judgeAppReviseElementReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:370698_1
judgeAppReviseElementReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:370699_1
    }
  
    /*D3-判断业务应用重置修订元素[4790]   */
    Assert.isNull(judgeAppReviseElementReqDto.getTableTypeCode(),"B3-判断业务应用重置修订元素(管理)-D3-判断业务应用重置修订元素-内容表类型编码不能为空",false);
Assert.isNull(judgeAppReviseElementReqDto.getEntityId(),"B3-判断业务应用重置修订元素(管理)-D3-判断业务应用重置修订元素-内容表主键ID不能为空",false);
      judgeAppReviseElementRespDto = fwAppChangeColumnClient.judgeAppReviseElement(judgeAppReviseElementReqDto).getData();
      
      
      judgeAppReviseElementRespDto_1 = judgeAppReviseElementRespDto;
    
BffJudgeAppReviseElementRespDto retData = new BffJudgeAppReviseElementRespDto();
  if(judgeAppReviseElementRespDto_1!=null){
      //list-field-assign
    retData.setBizAppChangeColList(judgeAppReviseElementRespDto_1.getBizAppChangeColList());//sourceId:370703_1
    }
  

  
  
return retData;
  }
/**
   * B3撤销修订评价批次下指标(管理)[4498]
   * gen by moon at 11/4/2022, 7:38:13 AM
   */
    @Trace(operationName = "B3撤销修订评价批次下指标(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUndoReviseEvaBatchTargetRespDto undoReviseEvaBatchTarget(BffUndoReviseEvaBatchTargetReqDto reqDto){
      
       
       //步骤0: D3撤销修订业务应用变更字段(公共) - undoReviseBizAppChangeColCom
     UndoReviseBizAppChangeColComRespDto undoReviseBizAppChangeColComRespDto = null;
    UndoReviseBizAppChangeColComReqDto undoReviseBizAppChangeColComReqDto=new UndoReviseBizAppChangeColComReqDto();
  undoReviseBizAppChangeColComReqDto.setTableTypeCode("OMS_TARGET_OBJECTIVE");//sourceId:315419_1
if(reqDto!=null){
      undoReviseBizAppChangeColComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:315420_1
    }
  
    /*D3撤销修订业务应用变更字段(公共)[3891]   */
    Assert.isNull(undoReviseBizAppChangeColComReqDto.getEntityId(),"B3撤销修订评价批次下指标(管理)-D3撤销修订业务应用变更字段(公共)-内容表主键ID不能为空",false);
Assert.isNull(undoReviseBizAppChangeColComReqDto.getTableTypeCode(),"B3撤销修订评价批次下指标(管理)-D3撤销修订业务应用变更字段(公共)-内容表类型编码不能为空",false);
      undoReviseBizAppChangeColComRespDto = fwAppChangeColumnClient.undoReviseBizAppChangeColCom(undoReviseBizAppChangeColComReqDto).getData();
      
      
      
    
BffUndoReviseEvaBatchTargetRespDto retData = new BffUndoReviseEvaBatchTargetRespDto();
  
  

  

return retData;
  }
/**
   * B3-13查询评价模板变更记录列表(管理)(边界)[3788]
   * gen by moon at 6/10/2023, 1:13:26 AM
   */
    @Trace(operationName = "B3-13查询评价模板变更记录列表(管理)(边界)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryEvaChangeRecordListBorderRespDto queryEvaChangeRecordListBorder(BffQueryEvaChangeRecordListBorderReqDto reqDto){


       QueryBizAppChangeColListRespDto queryBizAppChangeColListRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
//步骤0: D3-13查询业务应用变更字段列表 - queryBizAppChangeColList
     QueryBizAppChangeColListRespDto queryBizAppChangeColListRespDto = null;
    QueryBizAppChangeColListReqDto queryBizAppChangeColListReqDto=new QueryBizAppChangeColListReqDto();
  queryBizAppChangeColListReqDto.setSubjectTypeCode("EVALUATION_TEMPLATE_LOG_NAV");//sourceId:180476_1
if(reqDto!=null){
      queryBizAppChangeColListReqDto.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:180475_1
queryBizAppChangeColListReqDto.setSubjectChangeType(reqDto.getSubjectChangeType());//SimpleFieldAssign//sourceId:180477_1
queryBizAppChangeColListReqDto.setSubjectUpdateStatus(reqDto.getSubjectUpdateStatus());//SimpleFieldAssign//sourceId:180478_1
queryBizAppChangeColListReqDto.setObjectTypeCode(reqDto.getObjectTypeCode());//SimpleFieldAssign//sourceId:180500_1
queryBizAppChangeColListReqDto.setObjectId(reqDto.getObjectId());//SimpleFieldAssign//sourceId:180501_1
    }

    /*D3-13查询业务应用变更字段列表[3786]   */
    Assert.isNull(queryBizAppChangeColListReqDto.getBatchCode(),"B3-13查询评价模板变更记录列表(管理)(边界)-D3-13查询业务应用变更字段列表-批次标识不能为空",false);
Assert.isNull(queryBizAppChangeColListReqDto.getSubjectTypeCode(),"B3-13查询评价模板变更记录列表(管理)(边界)-D3-13查询业务应用变更字段列表-主体类型编码不能为空",false);
Assert.isNull(queryBizAppChangeColListReqDto.getObjectTypeCode(),"B3-13查询评价模板变更记录列表(管理)(边界)-D3-13查询业务应用变更字段列表-归属对象类型编码不能为空",false);
Assert.isNull(queryBizAppChangeColListReqDto.getObjectId(),"B3-13查询评价模板变更记录列表(管理)(边界)-D3-13查询业务应用变更字段列表-归属对象内容ID不能为空",false);
      queryBizAppChangeColListRespDto = fwAppChangeColumnClient.queryBizAppChangeColList(queryBizAppChangeColListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryBizAppChangeColListRespDto_1 = queryBizAppChangeColListRespDto;

//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryBizAppChangeColListRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(queryBizAppChangeColListRespDto!= null&&  queryBizAppChangeColListRespDto.getBizAppChangeColList() !=null&& !CollectionUtil.isEmpty(queryBizAppChangeColListRespDto.getBizAppChangeColList())){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryBizAppChangeColListRespDto.getBizAppChangeColList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:180506_1
    }

    /*D1-3批量查询就职记录列表（公共）[602]   */

      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }

BffQueryEvaChangeRecordListBorderRespDto retData = new BffQueryEvaChangeRecordListBorderRespDto();
  //数据集融合  MoreListToOneSource
        if(queryBizAppChangeColListRespDto_1!= null && !CollectionUtil.isEmpty(queryBizAppChangeColListRespDto_1.getBizAppChangeColList()) ){
          for (BizAppChangeColDto bizAppChangeColDto : queryBizAppChangeColListRespDto_1.getBizAppChangeColList()) {
              BffEvaChangeRecordDto retElm = new BffEvaChangeRecordDto();
             if(queryBizAppChangeColListRespDto_1!=null){
      retElm.setChangeColumnId(bizAppChangeColDto.getChangeColumnId());//SimpleFieldAssign//sourceId:76757_2
retElm.setSubjectChangeType(bizAppChangeColDto.getSubjectChangeType());//SimpleFieldAssign//sourceId:76758_2
retElm.setSubjectUpdateStatus(bizAppChangeColDto.getSubjectUpdateStatus());//SimpleFieldAssign//sourceId:76759_2
retElm.setIsInproperties(bizAppChangeColDto.getIsInproperties());//SimpleFieldAssign//sourceId:76760_2
retElm.setObjectPropertyName(bizAppChangeColDto.getObjectPropertyName());//SimpleFieldAssign//sourceId:76761_2
retElm.setOriColumnContent(bizAppChangeColDto.getOriColumnContent());//SimpleFieldAssign//sourceId:76762_2
retElm.setColumnContent(bizAppChangeColDto.getColumnContent());//SimpleFieldAssign//sourceId:76763_2
retElm.setOperationInductionId(bizAppChangeColDto.getOperationInductionId());//SimpleFieldAssign//sourceId:76764_2
retElm.setOperateTime(bizAppChangeColDto.getOperateTime());//SimpleFieldAssign//sourceId:76765_2
    }
              retData.getEvaChangeRecordList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(bizAppChangeColDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setUserId(perOrgInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:76778_2
retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:76779_2
retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:76780_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:76781_2
    }
                }
            }
          }

          }
        }//sourceId:180504_1




return retData;
  }
    //
}
